package com.cskaoyan.service;

import com.cskaoyan.bean.bo.CartAddBO;
import com.cskaoyan.bean.bo.WxCartCheckedBO;
import com.cskaoyan.bean.bo.WxCartDeleteBO;
import com.cskaoyan.bean.bo.WxCartUpdateBO;
import com.cskaoyan.bean.po.MarketUser;
import com.cskaoyan.bean.vo.wx_cart.WxCartCheckoutVO;
import com.cskaoyan.bean.vo.wx_cart.WxCartIndexVO;

import java.util.Arrays;

/**
 * @Author: Ryan
 * @CreateTime: 2022-09-08  17:45
 */

public interface WxCartService {
    WxCartIndexVO queryCartIndex();

    WxCartCheckoutVO queryCartCheckout(Integer cartId, Integer addressId, Integer couponId, Integer userCouponId, Integer grouponRulesId, MarketUser user);

    WxCartIndexVO cartChecked(WxCartCheckedBO wxCartCheckedBO);

    void cartUpdate(WxCartUpdateBO wxCartUpdateBO);

    WxCartIndexVO cartdelete(WxCartDeleteBO wxCartDeleteBO);

    Integer cartSelectGoodscount();

    Integer cartAdd(CartAddBO cartAddBO,MarketUser user);

    Integer cartFastadd(CartAddBO cartAddBO, MarketUser user);
}
